home *** CD-ROM | disk | FTP | other *** search
- DISCLAIMER:
-
- This program is offered "as is". There is no guarantee that this program
- will not mess up files on your hard drive. I do not claim responsibility
- for anyone trying to use this program for any purpose other than the one
- it was intended or if something does happen when it is used properly. The
- only claim I make is that it works on my system.
-
- PURPOSE:
-
- This program is intended to help those of us trying to run servers on our
- Amiga computers. I ran into the problem of trying to keep my computer
- online when I wasn't physically in front of (it does get boring just
- sitting there sometimes... really). So I decided to write a program
- to take care of the mundane task for me.
-
- IDEA:
-
- The idea of this program was to keep my computer online, along with the
- task of helping me figure out which port was causing crashes. I called
- it "Movelog" because it was originally intended to move the amitcp.log
- file to a more permanent storage location, so that when my computer would
- crash, I would have a log to look at and see which program was the faulty
- one.
-
- Once I got the program to do that, I decided that it could examine each
- line in the file for the signal that the modem was offline and reset it.
- I will probably add a config file to allow users to determine what they
- want to watch for along with a command to be executed when the
- line is found.
-
- REQUIREMENTS:
-
- any AmiTCP version that uses the file "t:amitcp.log"
- any Amiga computer that is running AmiTCP.
- a knowledge of your commands that you use to bring your computer online
- and take it offline again.
-
- The programs used by Movelog internally are:
-
- askhost (to keep the link active by requesting data across the
- link every 25 minutes)
- copy (to copy needed commands to T: so that it doesn't need
- to access the hard drive during run-time)
- status (to check for another copy of itself running)
- say (pretty much only if you have the "realms" MUD running
- on the default port of 4563, AND you have logging turned
- ON in your inet.access file)
- delete (to clean up any files it moved to T: during the run)
-
- ARGUMENTS:
-
- This program is only executed from the command line at the moment. The
- argument it is expecting is the path and logfile that you want it to
- monitor.
-
- My command line looks like this:
-
-
- movelog t:amitcp.log
-
-
- Theoretically, it can be used to monitor any file that you desire.
-
- TECHNICAL:
-
- This program operates on a 30 second interval for checking the file. It
- moves new information every 30 seconds. It checks for an action like
- clicking on the pause button once per second. I had to do this because
- I couldn't find a way to set up a condition for a time OR an IDCMP flag.
- If anyone can tell me how to do this, I'd be greatful, and my program
- will be more fluid to use.
-
- The login program needs to be able to have some kind of output, and it
- has to be redirected into a file called "t:movelogtemp". The file has
- to somewhere have the word "connect" (case insensitive) since that's
- what it looks for to determine that it is in fact back online. The program
- IPDial is one that can do this if you use the command as I have it set up:
-
-
- ipdial login.ipdial echo > t:movelogtemp
-
-
- That line will direct the output from the echo to the file that movelog
- needs.
-
- The .cfg files are loaded in the following order for a fresh, first-time
- boot-up:
-
-
- preboot.cfg
- reboot.cfg
- runtime.cfg
- reruntime.cfg
-
-
- since they are all run at the same time, there is no need to have duplicate
- commands in them. The following is the order of commands that happens
- when either the modem falls offline, or you tell the program to reboot
- the network:
-
-
- preboot.cfg
- reboot.cfg
- reruntime.cfg
-
-
- notice that the only one that's not used again is the runtime.cfg. This is
- because that is the only file that is supposed to have programs that will
- stay running even if the modem goes offline.
-
- You do not need to put "startnet" or "stopnet" in there anywhere because
- the program takes care of these automatically.
-
- FEE:
-
- There is no required fee. I only ask that you email me to let me know
- that people are using my program, it'll make me feel good (seriously),
- and it doesn't take much time to write an email saying "cool program" (c:
-
- But.... if you WANT to send me some money or if you think my time
- on this program is worth something, I will not decline the donation (c;
-
-
- CONTACT INFO:
-
- If anybody needs or wants to contact me in reference to this program feel
- free to do so, in fact, I would really like to have some feedback on this
- program since it is my first release into the public domain.
-
- email: vancej@kiimbal.dyn.ml.org
-
- postal: Jim Vance
- 2504 River Hills ct apt #901
- Arlington, Tx 76006
-
- This email address should be good for quite a while since it's an address
- on my computer through my email server, it'll be good no matter what
- service provider I get, as long as Monolith (DynDNS) is operating.
-
- Thanks
-
-
- --------------------------
-